package com.exam.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.fasterxml.jackson.databind.ser.Serializers;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.fh.domain.Work;

import java.util.List;
import java.util.Map;

public interface WorkMapper extends BaseMapper<Work> {

    @Select("select count(*) as `people` , start_work as startWork from t_work ${ew.customSqlSegment}")
    public List<Map<String,Object>> selectStats(@Param(Constants.WRAPPER) QueryWrapper<Work> wrapper);



}
